package com.banwoqiche.mapper;

import org.apache.ibatis.annotations.Param;
import com.banwoqiche.pojo.SysRole;
import java.util.List;

/**
 * @time: 2022-03-31 11:35
 */
public interface BindMapper {
    List<SysRole> getRankMenuByuserid(Long userId);

    int checkRank_Menus(@Param("rid") Long rankId, @Param("mid") Long menusId);

    int checkUser_Rank(@Param("uid") Long userId, @Param("rid") Long rankId);

    int bindUserAndRank(@Param("uid") Long userId, @Param("rid") Long rankId);

    int changeUser_Rank(@Param("uid") Long userId, @Param("rid") Long rankId);

    int bindRankAndMenus(@Param("rid") Long rankId, @Param("mid") Long menusId);

    void removeRankAllMenus(Long rankId);

    void removeRank_Menus(@Param("rid") Long rankId, @Param("mid") Long menusId);
}
